package com.smart.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("项目周报自定填报项Add请求模型")
public class ProjectWeeklyItemAddRequest implements Serializable {
    @ApiModelProperty("信息项名称")
    private String name;
    @ApiModelProperty("信息项类型 TEXT文本、IMAGE图片、NUMBER数字")
    private String itemType;
    @ApiModelProperty("文本最大数据长度")
    private Long textMaxLength;
    @ApiModelProperty("图片张数")
    private Long imageNum;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效周开始时间")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效周结束时间")
    private Date endTime;
    @ApiModelProperty("排序优先级")
    private Long sortNum;
}
